<?php
  class FuncoesFacade{
      
      
      public function __construct(){
          
      }
      
      public function plugin_audio_player($url_media,$width,$height){
          
          $css_height = ($height == 0) ? "30" : $height;
          $css_width = ($width == 0) ? "230" : $width;
          
          if($url_media):
              $var =  '<script src="plugins/audio_player/audio-player.js"></script>';
              $var .= '<object type="application/x-shockwave-flash" data="plugins/audio_player/player.swf" id="audioplayer1" height="'.$css_height.'" width="'.$css_width.'">';
              $var .= '<param name="movie" value="plugins/audio_player/player.swf">'; 
              $var .= '<param name="FlashVars" value="playerID=audioplayer&soundFile='.$url_media.'">'; 
              $var .= '<param name="quality" value="high">';
              $var .= '<param name="menu" value="false">'; 
              $var .= '<param name="wmode" value="transparent">'; 
              $var .= '</object>';
          else:
              $var = "URL_MEDIA";
          endif;
          
          return $var;

      }
      
      
      
      
  }
?>
